package com.example.manager.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class MvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //ViewController controller路径，ViewName html路径
        registry.addViewController("login").setViewName("login");
        registry.addViewController("register").setViewName("register");
        registry.addViewController("index").setViewName("index");
        registry.addViewController("showuser").setViewName("showuser");
        registry.addViewController("bookedit").setViewName("bookedit");

    }
}
